<?php 
get_header();
?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="postindex" id="post-<?php the_ID(); ?>">
	
	<div class="entry">
			<a href="<?php the_permalink() ?>" rel="bookmark">
			<img src="<?php $values = get_post_custom_values("poster"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
        <?php if(function_exists('the_ratings')) { the_ratings(); } ?>  
        <?php if(function_exists('the_views')) { the_views(); } ?>  
	</div>
	


</div>

<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

<?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>


<?php get_footer(); ?>
